#!/usr/env/bin python

"""
"""
#
#

class MyEbookUtil:
#
    def __init__(self):
        self.string = ''
#
    def replace(self, text, pattern, rep):
        import re
        self.string = re.sub(pattern, rep, text)
        print self.string

###
if __name__=="__main__":
    rn = MyEbookUtil()
    rn.replace(r'12345666', r'^1[1-9]*6{1,3}', 'x')

